/*
 *    Copyright (c) 2018-2025, proj All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the proj developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: proj
 */

package com.ykht.proj.coupon.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ykht.proj.coupon.entity.CnCouponLog;
import com.ykht.proj.coupon.entity.FxRewardPerson;
import com.ykht.proj.coupon.entity.FxShare;
import com.ykht.proj.coupon.vo.*;

import java.util.List;

/**
 * c端奖励记录表
 *
 * @author proj code generator
 * @date 2021-08-12 14:10:39
 */
public interface FxRewardPersonService extends IService<FxRewardPerson> {

	MyStatistics myStatistics();

    Page<MyFy> myFys(Page page, Long personId);

	/**
	 * 分页查询 c端奖励记录表
	 * @param page 分页对象
	 * @param fxRewardPersonVo c端奖励记录表
	 * @return
	 */
    IPage<FxRewardPersonVo> getFxRewardPersonPage(Page page, FxRewardPersonVo fxRewardPersonVo);

	/**
	 * 分页查询 品牌的消费记录表
	 * @param page 分页对象
	 * @param fxRewardPersonVo c端奖励记录表
	 * @return
	 */
    IPage<FxRewardPersonVo> getBrandConsumptionPage(Page page, FxRewardPersonVo fxRewardPersonVo);

    void rewardByShareCoupon(FxShare shareId, CnCouponLog cnCouponLog);
    void rewardByShareCard(VOrderCardVO orderCard);

	RewardPerson4C rewardPerson4CPage(Page<FxRewardPersonVo4C> page, Long loginId);


	void updateReward(int shopType, Long sjId);

	FXRewardPersonLogVo selectMoeny();

	int insert(FXRewardPersonLogVo fxRewardPersonLogVo);

	List<FxRewardPersonVo> getExport();

	void rewardCard(VOrderCardVO orderCard);

    List<FxRewardPersonVo> getBrandConsumptionPage(FxRewardPersonVo fxRewardPersonVo);
}
